package com.warm.pump.module.work.service;

import com.warm.pump.module.work.bean.po.gen.WorkParams;
import com.warm.pump.frame.gen.bean.PageBean;

import java.util.List;
import java.util.Map;

/**
 * work_params
 *
 */
public interface IWorkParamsService {

	WorkParams queryObject(Long  id);

   WorkParams queryObject(Map<String, Object> map);
	
	List<WorkParams> queryList(Map<String, Object> map);

    PageBean getPageBeanByMap(Map map,int pageNo,int pageSize);

    int queryTotal(Map<String, Object> map);
	
	void save(WorkParams workParams);
	
	void update(WorkParams workParams);

    void delete(Map<String, Object>  map);
	void delete(Long  id);
	
	void deleteBatch(Long[]  ids);

	/**
	 * 参数管理中关联作业创建实例
	 * @param workId
	 * @param paramsId
	 */
	public void createInstByWorkIdAndParamsId(Long workId, Long paramsId);
}
